﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="address.aspx.cs" Inherits="yuejilalala.address" %>

<!DOCTYPE html>
<html>
	<%--gai--%>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0">

		<title>地址管理</title>

		<link href="../AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css">
		<link href="../AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css">

		<link href="../css/personal.css" rel="stylesheet" type="text/css">
		<link href="../css/addstyle.css" rel="stylesheet" type="text/css">
		<script src="../AmazeUI-2.4.2/assets/js/jquery.min.js" type="text/javascript"></script>
		<script src="../AmazeUI-2.4.2/assets/js/amazeui.js"></script>
		<style>
	  .anniu{
		  background-color:cyan;
		  color:darkslateblue;
		  height:30px;
		  width:50px;
	  }
		    .bianda {
				margin-top:-40px;
		    }
			#fudong{
				float:left;
			}
			#quxiao{
				clear:both;
			}
		</style>
	</head>

	<body>
		<form runat="server">
		<!--头 -->
		<header>
			<article>
				<div class="mt-logo">
					<!--顶部导航条 -->
						<div class="am-container header">
				<ul class="message-l">
					<div class="topMessage">
						<div class="menu-hd">
					 <asp:HyperLink ID="hl_dlm" NavigateUrl="information.aspx" runat="server" Visible="False"></asp:HyperLink>
						<asp:HyperLink ID="hl_dl" NavigateUrl="~/Login.aspx"  target="_top" runat="server">亲，请登录</asp:HyperLink>
						<asp:HyperLink ID="hl_zc" NavigateUrl="~/regiest.aspx"  target="_top" runat="server">免费注册</asp:HyperLink>
						
						</div>
					</div>
				</ul>
				<ul class="message-r">
					<div class="topMessage home">
						<div class="menu-hd"><a target="_top" class="h">
                            <asp:HyperLink ID="HyperLink3" NavigateUrl="~/home.aspx" runat="server">商城首页</asp:HyperLink></a></div>
					</div>
					<div class="topMessage my-shangcheng">
						<div class="menu-hd MyShangcheng"><a  target="_top"><i class="am-icon-user am-icon-fw"></i><asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="information.aspx">个人中心</asp:HyperLink></a></div>
					</div>
					<div class="topMessage mini-cart">
						<div class="menu-hd"><a id="mc-menu-hd"  target="_top"><i class="am-icon-shopping-cart  am-icon-fw"></i><span><asp:HyperLink NavigateUrl="shopcart.aspx" ID="HyperLink5" runat="server">购物车</asp:HyperLink></span><asp:Label  id="J_MiniCartNum"  class="h" runat="server" Text="0"></asp:Label></a></div>
					</div>
					
				</ul>
				</div>


						<!--悬浮搜索框-->

						<div class="nav white">
							<div class="logoBig">
								<li><img src="../images/logobig.png" /></li>
							</div>

						</div>

						<div class="clear"></div>
					</div>
				</div>
			</article>
		</header>

		<div class="nav-table">
			<div class="long-title"><span class="all-goods">全部分类</span></div>
			<div class="nav-cont">
				<ul>
					<li class="index"><a href="home.aspx">首页</a></li>
				</ul>
				<div class="nav-extra">
					<i class="am-icon-user-secret am-icon-md nav-user"></i><b></b><a style="color: #fcff00;" href="information.aspx">个人中心</a>
					<i class="am-icon-angle-right" style="padding-left: 10px;"></i>
				</div>
			</div>
		</div>
		<b class="line"></b>

		<div class="center">
			<div class="col-main">
				<div class="main-wrap">

					<div class="user-address">
						<!--标题 -->
						<div class="am-cf am-padding">
							<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">地址管理</strong> / <small>Address&nbsp;list</small></div>
						</div>
						<hr/>
					
						<div class="clear"></div>
						<a class="new-abtn-type" data-am-modal="{target: '#doc-modal-1', closeViaDimmer: 0}">添加新地址</a>
						<!--例子-->
						<div class="am-modal am-modal-no-btn" id="doc-modal-1">
                            <asp:ScriptManager ID="ScriptManager2" runat="server"></asp:ScriptManager>
                            <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
								<ContentTemplate>
                            <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand1">
								<ItemTemplate>
										<ul class="am-avg-sm-1 am-avg-md-3 am-thumbnails" id="fudong">
							
											<li class="user-addresslist">
								<span class="new-option-r"><i class="am-icon-check-circle"></i></span>
								<p class="new-tit new-p-re">
									<span class="new-txt"><%# Eval("name") %></span>
									<br>
									</br>
									<span class="new-txt-rd2"><%# Eval("phone") %></span>
									<br>
									</br>
								</p>
								<div class="new-mu_l2a new-p-re">
									<p class="new-mu_l2cw">
										<span class="title">地址：</span>
										<span class="dist"><%# Eval("addres") %></span></p>
								</div>
								<div class="new-addr-btn bianda">
								<%--	<a href="#"><i class="am-icon-edit"></i>编辑</a>--%>

									<span class="new-addr-bar"></span>
									<%--<a href="javascript:void(0);" onclick="delClick(this);"><i class="am-icon-trash"></i>删除</a>--%>
									<asp:LinkButton  ID="LinkButton1" runat="server" CommandArgument='<%# Eval("id")%>' CommandName="rule">设为默认</asp:LinkButton>
									<asp:LinkButton class="am-icon-trash" ID="LinkButton4" runat="server" CommandArgument='<%# Eval("id")%>' CommandName="del">删除</asp:LinkButton>
								</div>
							</li>
						</ul>
								</ItemTemplate>	
                            </asp:Repeater>
									</ContentTemplate>
								</asp:UpdatePanel>
							<div class="add-dress" id="quxiao">

								<!--标题 -->
								<div class="am-cf am-padding">
									<div class="am-fl am-cf"><small class="am-text-danger am-text-lg">新增地址Address</small></div>
								</div>
								<hr/>

								<div class="am-u-md-12 am-u-lg-8" style="margin-top: 20px;">
									<div class="am-form am-form-horizontal" runat="server">

										<div class="am-form-group">
											<label for="user-name" class="am-form-label">收货人</label>
											<div class="am-form-content">
												<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
											</div>
										</div>

										<div class="am-form-group">
											<label for="user-phone" class="am-form-label">手机号码</label>
											<div class="am-form-content">
												<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
											</div>
										</div>
										<div class="am-form-group">
											<label for="user-address" class="am-form-label">所在地</label>
											<div class="am-form-content address">
                                                <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
													<ContentTemplate>
                                                <asp:DropDownList ID="DropDownList1" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" AutoPostBack="True"></asp:DropDownList>
                                                <asp:DropDownList ID="DropDownList2" runat="server" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged" AutoPostBack="True"></asp:DropDownList>
                                                <asp:DropDownList ID="DropDownList3" runat="server" AutoPostBack="True"></asp:DropDownList>
													</ContentTemplate>
                                                </asp:UpdatePanel>
											</div>
										</div>
										<div class="am-form-group">
											<label for="user-intro" class="am-form-label">详细地址</label>
											<div class="am-form-content">
												<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
												<small>100字以内写出你的详细地址...</small>
											</div>
										</div>

										<div class="am-form-group">
											<div class="am-u-sm-9 am-u-sm-push-3">
                                                <asp:Button ID="Button1" runat="server" Text="保存" class="anniu" OnClick="Button1_Click" BackColor="#FF6600" />
												<asp:Button ID="Button2" runat="server" Text="取消" class="anniu" OnClick="Button2_Click" BackColor="#FF6600" />
											</div>
										</div>
									</div>
								</div>

							</div>

						</div>

					</div>

					<script type="text/javascript">
						$(document).ready(function() {							
							$(".new-option-r").click(function() {
								$(this).parent('.user-addresslist').addClass("defaultAddr").siblings().removeClass("defaultAddr");
							});
							
							var $ww = $(window).width();
							if($ww>640) {
								$("#doc-modal-1").removeClass("am-modal am-modal-no-btn")
							}
							
						})
                    </script>

					<div class="clear"></div>

				</div>
				<!--底部-->
				<div class="footer">
					<div class="footer-hd">
						<p>
							<a href="#">恒望科技</a>
							<b>|</b>
							<a href="#">商城首页</a>
							<b>|</b>
							<a href="#">支付宝</a>
							<b>|</b>
							<a href="#">物流</a>
						</p>
					</div>
					<div class="footer-bd">
						<p>
							<a href="#">关于恒望</a>
							<a href="#">合作伙伴</a>
							<a href="#">联系我们</a>
							<a href="#">网站地图</a>
							<em>© 2015-2025枫林火山组 版权所有. </em>
						</p>
					</div>
				</div>
			</div>

			<aside class="menu">
				<ul>
					<li class="person">
						<a href="#">个人中心</a>
					</li>
					<li class="person">
						<ul>
							<li> <a href="information.aspx">个人信息</a></li>
							<li> <a href="Safety.aspx">安全设置</a></li>
							<li> <a href="address.aspx">收货地址</a></li>
						</ul>
					</li>
					<li class="person">
						<ul>
							<li><a href="order.aspx">订单管理</a></li>
						</ul>
					</li>

					<li class="person">
						<ul>
							<li> <a href="remark.aspx">评价</a></li>
						</ul>
					</li>

				</ul>

			</aside>
		</div>
		</form>
	</body>

</html>